<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>swiper</title>
    <link rel="stylesheet" href="./swiper.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none;
        }
        
    </style>
</head>

<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="../lib/image/bom/m1.jpg"></div>
            <div class="swiper-slide"><img src="../lib/image/bom/m2.jpg"></div>
            <div class="swiper-slide"><img src="../lib/image/bom/m3.jpg"></div>
            <div class="swiper-slide"><img src="../lib/image/bom/m4.jpg"></div>
        </div>

        <div class="arrow arrow-l"><</div> <div class="arrow arrow-r">></div>

        <ul class="pagination"></ul>
    </div>

    <script src="./swiper.js"></script>
    <script type="text/javascript">

        new Swiper(".swiper-container", {
            loop: true, // 无缝循环
            pagination: {
                el: ".pagination", // 选择分页元素
            },
            autoplay: true, // 开启自动轮播
            duration: 2000 // 自动轮播间隔
        })
    </script>
</body>

</html>